package com.dragon.modules.yuegou.entity.wallet;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 后台退卡（取消福利卡发放）实体类<br>
 * 对应的表为：walt_member_card_cancel<br>
 * 
 * @author pbuilder generated
 * @date 2019-08-22 19:47:33
 * @company sgy
 * @version 2.0
 */
@TableName("walt_member_card_cancel")
@ApiModel(description = "后台退卡（取消福利卡发放）")
public class MemberCardCancelEntity {

    /**  */
	protected String id;

    /** 会员ID（冗余ID） */
	@ApiModelProperty("会员ID（冗余ID）")
	protected String memberId;

    /** 会员钱包ID（冗余ID） */
	@ApiModelProperty("会员钱包ID（冗余ID）")
	protected String memberWalletId;

    /** 悦卡模板ID */
	@ApiModelProperty("悦卡模板ID")
	protected String cardTemplateId;

    /** 会员悦卡ID */
	@ApiModelProperty("会员悦卡ID")
	protected String memberCardId;

    /** 退卡人 */
	@ApiModelProperty("退卡人")
	protected String createdBy;

    /** 退卡时间 */
	@ApiModelProperty("退卡时间")
	protected LocalDateTime createdTime;

    /** 退卡原因 */
	@ApiModelProperty("退卡原因")
	protected String reason;

    /** 退款金额 */
	@ApiModelProperty("退款金额")
	protected BigDecimal remain;

	/**
	 * 构造一个空后台退卡（取消福利卡发放）实体对象
	 */
	public MemberCardCancelEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个后台退卡（取消福利卡发放）实体对象
	 * 
	 * @param other 其它对象
	 */
	public MemberCardCancelEntity(MemberCardCancelEntity other){
		super();
     	this.id = other.id;
     	this.memberId = other.memberId;
     	this.memberWalletId = other.memberWalletId;
     	this.cardTemplateId = other.cardTemplateId;
     	this.memberCardId = other.memberCardId;
     	this.createdBy = other.createdBy;
     	this.createdTime = other.createdTime;
     	this.reason = other.reason;
     	this.remain = other.remain;
	}


	/**
	 * 获取
	 * 
	 * @return id 
	 */
	public String getId() {
		return id;
	}
  	
	/**
	 * 设置
	 * 
	 * @param id 
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取会员ID（冗余ID）
	 * 
	 * @return memberId 会员ID（冗余ID）
	 */
	public String getMemberId() {
		return memberId;
	}
  	
	/**
	 * 设置会员ID（冗余ID）
	 * 
	 * @param memberId 会员ID（冗余ID）
	 */
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}

	/**
	 * 获取会员钱包ID（冗余ID）
	 * 
	 * @return memberWalletId 会员钱包ID（冗余ID）
	 */
	public String getMemberWalletId() {
		return memberWalletId;
	}
  	
	/**
	 * 设置会员钱包ID（冗余ID）
	 * 
	 * @param memberWalletId 会员钱包ID（冗余ID）
	 */
	public void setMemberWalletId(String memberWalletId) {
		this.memberWalletId = memberWalletId;
	}

	/**
	 * 获取悦卡模板ID
	 * 
	 * @return cardTemplateId 悦卡模板ID
	 */
	public String getCardTemplateId() {
		return cardTemplateId;
	}
  	
	/**
	 * 设置悦卡模板ID
	 * 
	 * @param cardTemplateId 悦卡模板ID
	 */
	public void setCardTemplateId(String cardTemplateId) {
		this.cardTemplateId = cardTemplateId;
	}

	/**
	 * 获取会员悦卡ID
	 * 
	 * @return memberCardId 会员悦卡ID
	 */
	public String getMemberCardId() {
		return memberCardId;
	}
  	
	/**
	 * 设置会员悦卡ID
	 * 
	 * @param memberCardId 会员悦卡ID
	 */
	public void setMemberCardId(String memberCardId) {
		this.memberCardId = memberCardId;
	}

	/**
	 * 获取退卡人
	 * 
	 * @return createdBy 退卡人
	 */
	public String getCreatedBy() {
		return createdBy;
	}
  	
	/**
	 * 设置退卡人
	 * 
	 * @param createdBy 退卡人
	 */
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	/**
	 * 获取退卡时间
	 * 
	 * @return createdTime 退卡时间
	 */
	public LocalDateTime getCreatedTime() {
		return createdTime;
	}
  	
	/**
	 * 设置退卡时间
	 * 
	 * @param createdTime 退卡时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
		this.createdTime = createdTime;
	}

	/**
	 * 获取退卡原因
	 * 
	 * @return reason 退卡原因
	 */
	public String getReason() {
		return reason;
	}
  	
	/**
	 * 设置退卡原因
	 * 
	 * @param reason 退卡原因
	 */
	public void setReason(String reason) {
		this.reason = reason;
	}

	/**
	 * 获取退款金额
	 * 
	 * @return remain 退款金额
	 */
	public BigDecimal getRemain() {
		return remain;
	}
  	
	/**
	 * 设置退款金额
	 * 
	 * @param remain 退款金额
	 */
	public void setRemain(BigDecimal remain) {
		this.remain = remain;
	}

    public String toString() {
		return new StringBuilder().append("MemberCardCancelEntity{").
			append("id=").append(id).
			append(",memberId=").append(memberId).
			append(",memberWalletId=").append(memberWalletId).
			append(",cardTemplateId=").append(cardTemplateId).
			append(",memberCardId=").append(memberCardId).
			append(",createdBy=").append(createdBy).
			append(",createdTime=").append(createdTime).
			append(",reason=").append(reason).
			append(",remain=").append(remain).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public MemberCardCancelEntity copy() {
		return new MemberCardCancelEntity(this);
	}

    /**  */
	public static final String COL_ID = "id";

    /** 会员ID（冗余ID） */
	public static final String COL_MEMBER_ID = "member_id";

    /** 会员钱包ID（冗余ID） */
	public static final String COL_MEMBER_WALLET_ID = "member_wallet_id";

    /** 悦卡模板ID */
	public static final String COL_CARD_TEMPLATE_ID = "card_template_id";

    /** 会员悦卡ID */
	public static final String COL_MEMBER_CARD_ID = "member_card_id";

    /** 退卡人 */
	public static final String COL_CREATED_BY = "created_by";

    /** 退卡时间 */
	public static final String COL_CREATED_TIME = "created_time";

    /** 退卡原因 */
	public static final String COL_REASON = "reason";

    /** 退款金额 */
	public static final String COL_REMAIN = "remain";
}
